package Singleton;

public class DCLSingleton {
    private static volatile DCLSingleton s = null;
    private DCLSingleton() {}
    public static DCLSingleton getInstance() {
        if(s == null) {
            synchronized(DCLSingleton.class) {
                if(s == null) {
                    s = new DCLSingleton();
                }
            }
        }
        return s;
    }
}
